-- GENERATED SPELL FOR [Chillmere Tidehunter] --


function spell0_24460(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24460', 2307, 1)
end

function spell1_24460(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38556,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24460', 1500, 1)
end

function Sorts_24460(pUnit, Event)
local choix_sorts_24460 = math.random(0, 1)
if choix_sorts_24460 == 0 then
pUnit:RegisterEvent('spell0_24460', 1, 1)
end
if choix_sorts_24460 == 1 then
pUnit:RegisterEvent('spell1_24460', 1, 1)
end
end

function mob24460_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24460', math.random(1500, 3000), 1)
end

function mob24460_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24460_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24460_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24460, 1, 'mob24460_Action')
RegisterUnitEvent(24460, 2, 'mob24460_Leave')
RegisterUnitEvent(24460, 3, 'mob24460_Kill')
RegisterUnitEvent(24460, 4, 'mob24460_Die')
